package com.qf.demo.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.qf.demo.mapper.SortDao;
import com.qf.demo.model.TbPhsort;
import com.qf.demo.service.Sortservice;
import com.sun.glass.ui.Size;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SortserviceImpl implements Sortservice {
    @Autowired
    private SortDao sortDao;
    @Override
    public PageInfo<TbPhsort> findsort(int id,int start,int size) {

        PageHelper.startPage(start, size);

        List<TbPhsort> list=sortDao.findsort(id);
        return new PageInfo<TbPhsort>(list) ;
    }
}
